#!/bin/bash

:<<EOF

文件锁demo, 防止重复导入
bash  /home/sky/Desktop/shell/chapter5-process-control-流程控制/lock_application.sh

EOF




main() {

    script_path=$(dirname "$0")
    Lock=$script_path"/""Lock.sh"
    source  "$Lock"
    Lock  $script_path
    echo  'job 1'
    echo  'job 2'
    echo  'job 3'
    echo  'job 4'
    sleep  20
    echo  'done!'

}

main
